/*
 * StringUtils.cpp
 *
 *  Created on: 22 Aug 2011
 *      Author: Allan
 */

#include "StringUtils.h"

// Boost includes
#include <boost/algorithm/string.hpp>

const vector<string> Split(const string& line, const string& tokens)
{
	vector<string> splitLine;
	
	boost::split(splitLine, line, boost::is_any_of(tokens));
	
	boost::erase_all(splitLine, vector<string>(1, ""));
	
	return splitLine;
}
